/* Using CSS-vars for transitions so you can experiment easily */
:root {
  --infernoAnimationEnter: all 1.2s ease-out;
  --infernoAnimationLeave: all .6s ease-out;
}

/*******************************************/
/* Animate height and opacity of card <li> */
/*******************************************/
.inner-leave {
    /* Leave animation start state */
    opacity: 1;
    transform: translateX(0);
}

.inner-leave-active {
    /* Leave animation transitions */
    overflow: visible;
    transition: var(--infernoAnimationLeave);
    pointer-events: none; /* prevent hover to fire transition events */
}

.inner-leave-end {
    /* Leave animation end state */
    opacity: 0;
    transform: translateX(-100%);
}

.inner-enter {
    /* Enter animation start state */
    opacity: 0.5  ;
    transform: translateX(50%);
}

.inner-enter-active {
    /* Enter animation transitions */
    transition: var(--infernoAnimationEnter);
    pointer-events: none; /* prevent hover to fire transition events */
}

.inner-enter-end {
    /* Enter animation end state */
    opacity: 1;
    transform: translateX(0);
}


/* Some CSS for the list and cards */
.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page img {
  margin: 20vh auto 0;
  display: block;
  background-color: white;
}

.page h3 {
  background-color: white;
  margin: 1rem;
  text-align: center;
}

.page p {
  background-color: white;
  margin: 1rem auto;
  max-width: 20rem;
  text-align: left;
}

.inner {
  max-width: 30rem;
  margin: 10vh auto 2rem;
  padding: 4rem;
  background-color: #eee;
}

.inner h2 {
  font-size: 3em;
  margin: 3rem auto;
  text-align: center;
}

/* Some general CSS for the example */

button {
  padding: 0.5rem 1rem;
  margin: 0.5rem auto 0;
  display: block;
  background: #35a748;
  color: white;
  border-style: none;
  border-radius: 4px;
  width: 10rem;
} button:hover {
  background: #3775bb;
}

body {
  font-family: helvetica;
  box-sizing: border-box;
  margin: 0;
  padding: 1rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-end;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
}

.App {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem;
  width: calc(100vw - 2rem);
  height: 100vh;
}

h1 {
  position: absolute;
  bottom: 0;
  left: 0;
  transform: rotate(-90deg);
  font-size: 2rem;
  font-weight: 800;
  color: #ddd;
  text-align: center;
  margin: 0.5rem;
  white-space: nowrap;
  width: 2rem;
  transform-origin: 50% 50%;
}

h1 small {
  font-size: 0.5em;
}
h1 small a {
  color: #4A90E2;
  text-decoration: none;
}
h1 small a:hover {
  color: #3775bb;
}

h2 {
  font-size: 1rem;
  font-weight: 100;
  color: #4A90E2;
  text-align: center;
}

h3 {
  font-size: 0.85rem;
  font-weight: 100;
}

p {
  font-size: 0.85rem;
  font-weight: 100;
  color: #888;
  text-align: center;
  margin-top: -0.5em;
  width: 40rem;
  max-width: 100%;
}
